import {  defineStore } from 'pinia'
import { getHomeSlideData } from '@/services/home'
export const useHomeStore = defineStore('home', {
	state: () => {
		return {
			slides: []
		}
	},
	actions: {
		// 获取首页轮播图和推荐栏数据(异步action)
		async fetchHomeSlideData(){
			const res = await getHomeSlideData()
			console.log('fetchHomeSlideData=>' res);
		}
	}
})